

	<!-- 当前所在位置 START -->
	{include file="_url.here.tpl"}
	<!-- 当前所在位置 END -->

	<!-- 主体区 -->
	<div class="area">

		<form id="fm_cart" action="./index.php" method="post">
			<!-- 商品清单 START -->
			<div class="dl_t_block bdcolor-blue tb_list_border">

				<table class="tb_list flow-goods-list">
					<!-- 表头 START -->
					<thead>
						<tr>
							<th colspan="10"><em><a href="{$_s.pub_dir}goods/">继续购物</a></em>商品清单</th>
						</tr>
						<tr>
							<th style="width:24px;"></th>
							<!-- <th style="width:120px;">商品编号</th> -->
							<th style="width:64px;">商品图片</th>
							<th>商品名称</th>
							<th style="width:200px;">商品规格</th>
							<th style="width:60px;">商品重量</th>
							<th style="width:60px;">商品单价</th>
							<th style="width:100px;">商品数量</th>
							<th style="width:80px;">小计</th>
							<th style="width:50px;">操作</th>
						</tr>
					</thead>
					<!-- 表头 END -->

					<!-- 列表 START -->
					<tbody>
						{foreach from=$cartlist item=row}
						<tr>
							<td><input type="checkbox" name="cartid[]" value="{$row.id}" class="chbox" /></td>
							<!-- <td>{$row.goodsid}</td> -->
							<td><a href="{$row.url}" title="{$row.goods_name}"><img src="{$_s.up_dir}thumb/92_70/{$row.cover}" /></a></td>
							<td><a href="{$row.url}">{$row.goods_name}</a></td>
							<td><dl class="spec">
								{foreach from=$row.fspecs item=spec}
									{if $spec.value != ''}
									<dt>{$spec.name}：</dt>
									<dd>{$spec.value}</dd>
									{/if}
								{/foreach}
							</dl></td>
							<td>{$row.fweight}{$row.weightunit}</td>
							<td>￥{$row.price}</td>
							<td><ul class="buy_num">
								<li><b class="sub" id="number_sub">-</b></li>
								<li><input type="text" name="number[{$row.id}]" value="{$row.number}" class="input" ></li>
								<li><b class="add" id="number_add">+</b></li>
							</ul></td>
							<td>=&nbsp;<b>￥{$row.cost}</b></td>
							<td><a href="./index.php?mdl=cart&do=del&cartid={$row.id}">删除</a></td>
						</tr>
						{/foreach}						
					</tbody>
					<!-- 列表 END -->

				</table>

			</div>
			<!-- 商品清单 END -->

			<div class="space20"></div>

			<!-- 按钮与信息 START -->
			<div class="fleft">
				<button name="formAction" value="cart_clear" class="btn-cart-clear"></button>
				<div class="goods-list-info">
					商品总重量：<b>{$goods_weight}kg</b>&nbsp;&nbsp;商品总价：<b>￥{$goods_cost}</b>
				</div>
			</div>
			<div class="fright">
				<button name="formAction" value="cart_upgrade" class="fleft btn-buy-upgrade"></button>
				<button name="formAction" value="flow_checkout" class="fleft btn-settle"></button>
			</div>
			<!-- 按钮与信息 END -->

		</form>


		<div class="space20"></div>

		<!-- 精品推荐 START -->
		<div class="secondary_tag_block recommendes-flow">
			<div class="cmtab"><a class="first cur">精品推荐</a></div>
			
			<div class="main-block pattern_line_right">
				
					{counter start=0 skip=1 print=false assign=index}
					{foreach from=$goodslist_good item=goods}
					{counter}
					<dl class="{if $index < 4} first-line{/if}{if $index % 3 == 1} first-col{/if}">
						<dt><a href="{$goods.url}">
								<img src="{$_s.up_dir}thumb/200_180/{$goods.cover}" alt="{$goods.name}-{$goods.category}" />
							</a></dt>
						<dd><div class="space20"></div>
							<div><a href="{$goods.url}" class="title">{$goods.name}</a></div>
							<div><b>￥{$goods.price}</b></div>
							<div><a href="{$goods.url}" class="buy_now"></a></div>
							<div class="clear"></div>
						</dd>
					</dl>
					{/foreach}
					
					<div class="clear"></div>

				</div>

		</div>
		<!-- 精品推荐 END -->

	</div>
	<script type="text/javascript" language="JavaScript" charset="utf-8">
	<!--
		{literal}
		jQuery(function($){
			$('#number_sub').click(function(){
				var input = $(this).parent().next().find('input[name^="number"]');
				var number = parseInt(input.val());
				number --;
				if(number < 1){number = 1;}
				input.val(number);
			});
			$('#number_add').click(function(){
				var input = $(this).parent().prev().find('input[name^="number"]');
				var number = parseInt(input.val());
				number ++;
				if(number > 100){number = 100;}
				input.val(number);
			});
		});
		{/literal}
	//-->
	</script>